package com.wocharging.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
* <p>
* 计费模板明细
* </p>
* @author yuzhou
* @since 2024-06-179 15:00:10
*/
@Data
@Accessors(chain = true)
@TableName("wo_electric_template_detail")
@ApiModel(value = "WoElectricTemplateDetail对象", description = "计费模板明细")
public class WoElectricTemplateDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("模板Id")
    @TableField("temp_id")
    private Long tempId;

    @ApiModelProperty("唯一编号")
    @TableField("detail_code")
    private String detailCode;

    @ApiModelProperty("开始时间")
    @TableField("start_time")
    private String startTime;

    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private String endTime;

    @ApiModelProperty("服务费")
    @TableField("service_amount")
    private BigDecimal serviceAmount;

    @ApiModelProperty("基本电费")
    @TableField("electric_amount")
    private BigDecimal electricAmount;

    @ApiModelProperty("充电费用")
    @TableField("charge_amount")
    private BigDecimal chargeAmount;

    @ApiModelProperty("时段类型：1：尖时段；2：峰时段 3：平时段，4：谷时段")
    @TableField("time_type")
    private Integer timeType;

    @ApiModelProperty("是否删除 0:否1:是")
    @TableField("delete_flag")
    private Boolean deleteFlag;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

}
